package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "question")
public class TestQuestion implements Serializable {

    private ObjectId id;    //问题id
    private String paperId;//所属试卷id
    private String question;   //问题名称

    private String answer; //答案

}
